﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Site.Master" AutoEventWireup="true" CodeFile="Maquina.aspx.cs" Inherits="Maquina" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td>
                <asp:RadioButtonList ID="FiltroRadioButtonList" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="T">Todos</asp:ListItem>
                    <asp:ListItem Value="N">Nome</asp:ListItem>
                    <asp:ListItem Value="M">MAC</asp:ListItem>
                    <asp:ListItem Value="L">Localização</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="FiltroTextBox" runat="server" Width="300px"></asp:TextBox>
                <asp:Button ID="PesquisarButton" runat="server" onclick="PesquisarButton_Click" 
                    Text="Pesquisar" />
                <asp:LinkButton ID="NovoLinkButton" runat="server" 
                    onclick="NovoLinkButton_Click">Nova</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="MaquinaGridView" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" 
                    onpageindexchanging="MaquinaGridView_PageIndexChanging" Width="600px">
                    <Columns>
                        <asp:BoundField DataField="ds_localizacao" HeaderText="Localização">
                        <ItemStyle Width="300px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="nm_maquina" HeaderText="Máquina">
                        <ItemStyle Width="200px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="mac_maquina" HeaderText="MAC">
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

